package com.CmJava.entity;


import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;


//dubbo返回的类，需要序列化
@TableName("user")
public class User implements Serializable {
    private int id;
    private String username;
    private String password;
    private String authentication;
    private String friendList;
    private String createTime;

    public User() {
    }

    public User(int id, String userName, String userPassword, String authentication, String friendList, String createTime) {
        this.id = id;
        this.username = userName;
        this.password = userPassword;
        this.authentication = authentication;
        this.friendList = friendList;
        this.createTime = createTime;
    }

    public String getFriendList() {
        return friendList;
    }

    public void setFriendList(String friendList) {
        this.friendList = friendList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return username;
    }

    public void setUserName(String userName) {
        this.username = userName;
    }

    public String getUserPassword() {
        return password;
    }

    public void setUserPassword(String userPassword) {
        this.password = userPassword;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getAuthentication() {
        return authentication;
    }

    public void setAuthentication(String authentication) {
        this.authentication = authentication;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + username + '\'' +
                ", userPassword='" + password + '\'' +
                ", authentication='" + authentication + '\'' +
                ", friendList='" + friendList + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}

